home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Digitalfoto 118
/
Digitalfoto 118.iso
/
mac
/
programas
/
00
/
start.swf
/
scripts
/
frame_1
/
DoAction_7.as
< prev
next >
Wrap
Text File
|
2009-11-16
|
574b
|
21 lines
function loadMp3(arg)
{
mp3_so.loadSound(_root.fsp_path + _root.folder + arg,false);
this.checkLoadMusicProgress = function()
{
var _loc2_ = mp3_so.getBytesTotal();
var _loc1_ = mp3_so.getBytesLoaded();
if(_loc1_ > 0)
{
percent = Math.floor(_loc1_ / _loc2_ * 100);
if(percent > 99)
{
clearInterval(music_check_interval);
mp3_so.setVolume(100);
mp3_so.start(0,0);
}
}
};
music_check_interval = setInterval(checkLoadMusicProgress,1000);
}